<%@ page import="com.psl.model.userlogin" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    userlogin userinfo = (userlogin) session.getAttribute("user");
    if (userinfo == null) {
        response.sendRedirect("/login.do");
    }
%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>topbar</title>
    <link rel="stylesheet" href="assets/css/frame.css">
    <script type="text/javascript" src="/assets/js/jquery.js"></script>
    <script type="text/javascript" src="/assets/js/changeFrame.js"></script>

</head>
<body>
<div id="header">
    <div class="header">
        <div id="logo">
            <div id="subMenu">
                <ul>
                    <li><a href="/welcome.jsp" target="main">首页</a></li>
                    <li><a href="/system/changepassword.jsp" target="main">修改密码</a></li>
                    <li><a href="logout_security_check.do" target="_top">退出</a></li>
                </ul>
            </div>
            <%SimpleDateFormat df=new SimpleDateFormat("HH:mm");Date now=new Date();%>
            <div id="greeting" align="right">您好！<span><%=userinfo.getUsername()%>(<%=userinfo.getUserID()%>)</span>，欢迎登录 <%=df.format(now)%></div>
        </div>
        <div id="nav">
            <ul>
                <li><a href="/listleft.do?moduleType=0" class="Thover" target="menuFrame" onclick="demo(this,'Thover')"><span>全部</span></a></li>
                <li><a href="/listleft.do?moduleType=1" onclick="demo(this,'Thover')" target="menuFrame"><span>出口子系统</span></a></li>
                <li><a href="/listleft.do?moduleType=2" onclick="demo(this,'Thover')" target="menuFrame"><span>财务子系统</span></a></li>
                <li><a href="/listleft.do?moduleType=3" onclick="demo(this,'Thover')" target="menuFrame"><span>仓库子系统</span></a></li>
                <li><a href="/listleft.do?moduleType=5" onclick="demo(this,'Thover')" target="menuFrame"><span>车间子系统</span></a></li>
                <li><a href="/listleft.do?moduleType=4" onclick="demo(this,'Thover')" target="menuFrame"><span>统计分析子系统</span></a></li>
                <li><a href="/listleft.do?moduleType=5" onclick="demo(this,'Thover')" target="menuFrame"><span>管理员子系统</span></a></li>
                <li><a href="/listleft.do?moduleType=6" onclick="demo(this,'Thover')" target="menuFrame"><span>公共模块</span></a></li>
            </ul>
        </div>
        <div class="topSidebar"><a href="#" title="点击收缩">sideBar</a></div>
        <div class="nav_left"></div>
    </div>
</div>
</body>
</html>